﻿using System;
using UnityEngine;


public static class Functions
{
	public static bool isNear ( Vector2 a, Vector2 b, Vector2 range )
	{
		Debug.Log ("a: " + a + "      b: " + b + "    range: " + range);
		if (Math.Abs (a.x - b.x) <= Math.Abs (range.x) && Math.Abs (a.y - b.y) <= Math.Abs (range.y))
			return true;
		else
			return false;
	}
}



